package com.resume.controller;

import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: 梁云亮
 * @Date: 2021/7/15 16:54
 * @Describe:
 */
@Api(value = "请求转发控制器：DispatcherController", tags = "DispatcherController：请求转发控制器")
@Controller
public class DispatcherController {

    /**
     * swagger漂亮页面请求
     * @return
     */
    @GetMapping("/doc")
    public String doc() {
        return "doc";
    }

    /**
     * 后台管理首页
     * @return
     */
    @GetMapping({"/","/index"})
    public String index() {
        return "index";
    }

    @GetMapping("theme1")
    public String theme1() {
        return "theme1";
    }

}
